<?php
class ErrorCode
{
	const USERNAME_EXISTS = 1;					//用户名已存在
	const PASSWORD_CANNOT_EMPTY = 2;			//用户密码不能为空
	const USERNAME_CANNOT_EMPTY = 3;			//用户名不能为空
	const REGISTER_FAIL = 4;					//用户注册失败
	const USERNAME_OR_PASSWORD_INVALID = 5;		//用户名或密码错误

	const ARTICLE_TITLE_CANNOT_EMPTY = 6;		//文章标题不能为空
	const ARTICLE_CONTENT_CANNOT_EMPTY = 7;		//文章内容不能为空
	const ARTICLE_CREATE_FAIL = 8;				//发表文章失败
	const ARTICLE_ID_CANNOT_EMPTY = 9;			//文章Id不能为空
	const ARTICLE_NOT_FOUND = 10;				//文章不存在
	const PERMISSION_DEFINED = 11;				//无权操作该文章
	const ARTICLE_EDIT_FAIL = 12;				//编辑文章失败
	const ARTICLE_DELETE_FAIL = 13;				//删除文章失败
	const ARTICLE_USERID_CANNOT_EMPTY = 14;		//文章用户ID不能为空
	const ARTICLELIST_EMPTY = 15;				//文章列表为空
	const PAGE_SIZE_TO_BIG = 16;				//分页大小过大
	const SERVER_INTERNAL_ERROR = 17;			//服务器内部错误
}